package com.example.design.controller;

import com.example.design.phone.ClassMapFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nlsm
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/staticMap/{type}")
    public void staticMap(@PathVariable("type") Long type){
        ClassMapFactory.print();
    }

}
